package com.lagou.demo.service.impl;

import com.lagou.demo.service.IDemoService;
import com.lagou.edu.mvcframework.annotations.LagouService;

@LagouService("demoService")
public class DemoServiceImpl implements IDemoService {
    @Override
    public String get(String name) {
        return "service 实现类中的name参数：" + name;
    }

    @Override
    public String fallback(String name) {
        return "该用户"  + name + "没有访问权限，请联系管理员！";
    }
}
